<%@ Control Language="C#" AutoEventWireup="true" CodeFile="archivepage.ascx.cs" Inherits="Beta_fundies_controls_misc_archivepage" %>
<asp:MultiView ID="mviewArchive" runat="server">
    <asp:View ID="viewArchive" runat="server">
        <asp:GridView runat="server" ID="gridQuoteArchives" Width="50%" AutoGenerateColumns="False" HorizontalAlign="Center" GridLines="None">
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:HyperLink runat="server" ID="lnkArchive"
                            Text='<%# Convert.ToDateTime(Eval("YearMonth")).ToString("MMMM yyyy") %>'
                            NavigateUrl='<%# GetArchiveUrl(Eval("YearMonth") as string) %>' />
                    </ItemTemplate>
                    <HeaderTemplate>
                        Archive
                    </HeaderTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemTemplate>
                        <%# Eval("TotalQuotes") %>
                    </ItemTemplate>
                    <HeaderTemplate>
                        Quotes
                    </HeaderTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </asp:View>
    <asp:View ID="viewError" runat="server">
        Archive not found.</asp:View>
</asp:MultiView>
